package com.jarveis.frame.jdbc.handler;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.jarveis.frame.jdbc.ResultSetHandler;

/**
 * 单个值对象
 * 
 * @author liuguojun
 */
public class ValueHandler implements ResultSetHandler {

	@Override
	public Object handle(ResultSet rs) throws SQLException {

		Object result = null;
		if (rs.next()) {
			result = rs.getObject(1);
		}

		return result;
	}

}
